package com.vehicle_demo.dao;

import com.vehicle_demo.entity.VehicleInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.util.List;

@Mapper
@Component
public interface VehicleInfoDao {


    List<VehicleInfo> findAll();

    List<VehicleInfo> findById(int id);

    String findBatteryTypeByCarId(int carId);


    int insert(VehicleInfo vehicleInfo);


    int update(VehicleInfo vehicleInfo);


    int delete(int id);

}
